home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 476-500 / disk_478 / mp / source / makefile < prev    next >
Makefile  |  1992-05-06  |  3KB  |  91 lines

  1. ###########################################################################
  2. # Makefile:    Makefile for Manx Aztec C, version 5.0.
  3. #        Part of MP, the MIDI Playground.
  4. #
  5. # Author:    Daniel Barrett
  6. # Version:    See the file "version.h".
  7. # Copyright:    None!  This program is in the Public Domain.
  8. #        Please share it with others.
  9. ###########################################################################
  10.  
  11.     
  12. OPTIMIZE    = -so
  13. DEBUGGING    = #-bs
  14. LDEBUGGING    = #-g
  15.     
  16. LFLAGS        = $(LDEBUGGING) +Q
  17. CFLAGS          = $(OPTIMIZE) -hi $(COMP_INC) $(DEBUGGING)
  18. LIBS        = -lc
  19. COMP_INC    = headers.comp
  20. LIBS        = -lc
  21.  
  22. BACKUPDIR    = df1:sysex
  23.     
  24. ##############################################################################
  25. # Files used for all programs.
  26. ##############################################################################
  27.  
  28. PROG        = mp
  29. MAINHEADER    = mp.h
  30. HEADERS        = $(MAINHEADER) version.h midi.h
  31. SRC        = text.c main.c serial.c getopt.c iofunctions.c help.c \
  32.           files.c wb.c cli.c amigados.c
  33. OBJ        = text.o main.o serial.o getopt.o iofunctions.o help.o \
  34.           files.o wb.o cli.o amigados.o
  35.  
  36. ##############################################################################
  37. # The program.
  38. ##############################################################################
  39.  
  40. $(PROG):    $(COMP_INC) $(OBJ)
  41.         @echo ""
  42.         @echo "Ignore messages about _abort overriding library."
  43.         @echo ""
  44.         ln $(LFLAGS) $(OBJ) -o $(PROG) $(LIBS)
  45.  
  46. $(OBJ):        $(MAINHEADER)
  47.  
  48. ##############################################################################
  49. # Individual dependencies.
  50. ##############################################################################
  51.  
  52. help.o:        help.c        $(MAINHEADER) version.h
  53. iofunctions.o:    iofunctions.c $(MAINHEADER) midi.h
  54. serial.o:    serial.c      $(MAINHEADER) midi.h
  55.     
  56. ##############################################################################
  57. # Compiled headers.
  58. ##############################################################################
  59.  
  60. $(COMP_INC):    $(MAINHEADER)
  61.         @echo "Compiling headers because of $?"
  62.         cc $(OPTIMIZE) $(DEBUGGING) -ho $(COMP_INC) $(MAINHEADER)
  63.  
  64. #$(MAINHEADER):    $(HEADERS)
  65.  
  66. ##############################################################################
  67. # Clean up
  68. ##############################################################################
  69.  
  70. clean:
  71.         delete \#?.o \#?.pro
  72.  
  73. veryclean:    clean
  74.         delete $(COMP_INC) $(PROG) \#?.dbg
  75.  
  76. cbackup:
  77.         copy \#?.c $(BACKUPDIR)
  78.         copy \#?.h $(BACKUPDIR)
  79.         copy Makefile $(BACKUPDIR)
  80.  
  81. backup:        cbackup
  82.         copy README $(BACKUPDIR)
  83.         copy \#?.DOC $(BACKUPDIR)
  84.         copy Scripts $(BACKUPDIR)/Scripts   all
  85.         copy Examples $(BACKUPDIR)/Examples all
  86.  
  87. zoo:        $(PROG)
  88.         delete ram:mp.zoo quiet
  89.         zoo a ram:mp.zoo Source/* Scripts/* Examples/* \
  90.                  $(PROG) *.DOC README Makefile
  91.